using System;

namespace Mbs.Elements
{
    public class SimpleElementFactory : MarshalByRefObject, IElementFactory
    {
        public IElement Create(object uiElement)
        {
            var result = new SimpleElement();
            result.Add(uiElement);
            return result;
        }

        public bool Supports(object uiElement)
        {
            return true;
        }
    }
}
